home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CMQDataSource$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.4 KB  |  27 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.xml.dt.DataType;
  4. import com.extensibility.xml.dt.DataTypeEnumeration;
  5. import java.util.Enumeration;
  6.  
  7. class CMQDataSource$2 implements Enumeration {
  8.    // $FF: synthetic field
  9.    final CMQDataSource this$0;
  10.    final DataTypeEnumeration types;
  11.    final Enumeration notas;
  12.  
  13.    public boolean hasMoreElements() {
  14.       return this.types.hasMoreElements() || this.notas.hasMoreElements();
  15.    }
  16.  
  17.    public Object nextElement() {
  18.       return this.types.hasMoreElements() ? this.this$0.doc.getSchema().getDataTypeDisplay((DataType)this.types.nextElement()) : this.notas.nextElement();
  19.    }
  20.  
  21.    CMQDataSource$2(CMQDataSource var1) {
  22.       this.this$0 = var1;
  23.       this.types = this.this$0.doc.getSchema().getAllTypes();
  24.       this.notas = this.this$0.doc.getDeclNames(Class.forName("com.extensibility.xml.NotationDeclaration"), true);
  25.    }
  26. }
  27.